<?xml version="1.0"?>
<!--
    ***** BEGIN LICENSE BLOCK *****
    
    Copyright © 2011 Center for History and New Media
                     George Mason University, Fairfax, Virginia, USA
                     http://zotero.org
    
    This file is part of Zotero.
    
    Zotero is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    Zotero is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.
    
    You should have received a copy of the GNU Affero General Public License
    along with Zotero.  If not, see <http://www.gnu.org/licenses/>.
    
    ***** END LICENSE BLOCK *****
-->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://global/skin/browser.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/zotero.css"?>
<?xml-stylesheet href="chrome://zotero/skin/integration.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/integration.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform-version/content/style.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://zotero/locale/zotero.dtd">

<window
	id="quick-format-dialog"
	class="citation-dialog"
	orient="vertical"
	title="&zotero.integration.quickFormatDialog.title;"
	xmlns:html="http://www.w3.org/1999/xhtml"
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
	persist="screenX screenY"
	onkeypress="Zotero_QuickFormat.onWindowKeyPress(event)"
	onunload="Zotero_QuickFormat.onUnload()"
	drawintitlebar-platforms="linux"
	style="width: 800px;">
	<script src="../include.js"/>
	<script src="../titlebar.js" type="text/javascript"/>
	<script src="quickFormat.js" type="text/javascript"/>

	<linkset>
		<html:link rel="localization" href="zotero.ftl"/>
	</linkset>

	<box orient="horizontal" class="citation-dialog entry">
		<deck class="citation-dialog deck" selectedIndex="0" flex="1">
			<hbox class="citation-dialog main" flex="1" align="start">
				<hbox flex="1">
					<vbox class="citation-dialog icons start">
						<toolbarbutton id="zotero-icon" data-l10n-id="quickformat-citation-options" type="menu" tabindex="0" disabled="true">
							<menupopup>
								<menuitem id="keep-sorted" label="&zotero.citation.keepSorted.label;"
										oncommand="Zotero_QuickFormat.onKeepSortedCommand()" type="checkbox"
										hidden="true"/>
								<menuitem id="show-editor" label="&zotero.integration.showEditor.label;"
										oncommand="Zotero_QuickFormat.onShowEditorCommand()" type="checkbox"
										hidden="true"/>
								<menuitem id="classic-view" label="&zotero.integration.classicView.label;"
										oncommand="Zotero_QuickFormat.onClassicViewCommand()"/>
							</menupopup>
						</toolbarbutton>
					</vbox>
					<html:div flex="1" spellcheck="false" class="citation-dialog editor" role="application"></html:div>
					<vbox class="citation-dialog icons end">
						<image class="icon zotero-spinner-16"/>
						<toolbarbutton class="icon accept-button" onclick="Zotero_QuickFormat.accept()" data-l10n-id="quickformat-accept"></toolbarbutton>
					</vbox>
				</hbox>
			</hbox>
			<html:progress class="citation-dialog progress-meter" max="100"/>
		</deck>
	</box>
	<html:div id="bubble-description" class="aria-hidden" role="tooltip" data-l10n-id="quickformat-aria-bubble"></html:div>
	<html:div id="input-description" class="aria-hidden" role="tooltip" data-l10n-id="quickformat-aria-input"></html:div>
	<html:div id="item-description" class="aria-hidden" role="tooltip" data-l10n-id="quickformat-aria-item"></html:div>
	<panel class="citation-dialog reference-panel" noautofocus="true" norestorefocus="true"
		   height="0" width="0" flip="none">
		<richlistbox class="citation-dialog reference-list" flex="1" seltype="multiple"/>
	</panel>
	<panel id="citation-properties" type="arrow" orient="vertical"
		   onkeydown="Zotero_QuickFormat.onPanelKeyPress(event)"
		   onpopuphidden="Zotero_QuickFormat.onItemPopoverClosed(event)"
		   role="dialog">
		<vbox flex="1">
			<description id="citation-properties-title" tabindex="1"/>
			<hbox id="citation-properties-info" tabindex="2"/>
		</vbox>
		<html:div id="citation-properties-grid">
			<menulist id="locator-label" sizetopopup="none" tabindex="3"
					  oncommand="Zotero_QuickFormat.onCitationPropertiesChanged(event)" native="true">
				<menupopup id="locator-label-popup" onpopuphidden="Zotero_QuickFormat.ignoreEvent(event)"/>
			</menulist>
			<html:input type="text" aria-labelledby="locator-label" tabindex="4" id="locator"
					 oninput="window.setTimeout(function(event) { Zotero_QuickFormat.onCitationPropertiesChanged(event) }, 0)"/>
			<label id="prefix-label" value="&zotero.citation.prefix.label;"/>
			<html:input type="text" aria-labelledby="prefix-label" tabindex="5" class="citation-textbox" id="prefix" flex="1"
					 oninput="window.setTimeout(function(event) { Zotero_QuickFormat.onCitationPropertiesChanged(event) }, 0)"/>
			<label id="suffix-label" value="&zotero.citation.suffix.label;"/>
			<html:input type="text" aria-labelledby="suffix-label" tabindex="6" class="citation-textbox" id="suffix" flex="1"
					 oninput="window.setTimeout(function(event) { Zotero_QuickFormat.onCitationPropertiesChanged(event) }, 0)"/>
			<html:div>
				<checkbox type="checkbox" id="suppress-author" native="true" tabindex="7"
						oncommand="Zotero_QuickFormat.onCitationPropertiesChanged(event)"
						label="&zotero.citation.suppressAuthor.label;"/>
			</html:div>
		</html:div>
		<vbox flex="1" align="center">
			<button id="citation-properties-library-link" tabindex="8" onclick="Zotero_QuickFormat.showInLibrary()"/>
		</vbox>
	</panel>
	<guidance-panel class="citation-dialog guidance" about="quickFormat"
					for="zotero-icon" x="26"/>
</window>
